﻿@model IEnumerable<ingesup_ERP.Models.SERVICEPEDAGOGIQUE>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.NOMPERS)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PRENOMPERS)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MAILPERS)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DATENAISSPERS)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MDPPERS)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NUMTELPERS)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ADRESSEPERS)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.VILLEPERS)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CPPERS)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.NOMPERS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PRENOMPERS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MAILPERS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DATENAISSPERS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MDPPERS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NUMTELPERS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ADRESSEPERS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VILLEPERS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CPPERS)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id = item.LOGINPERS }) |
            @Html.ActionLink("Details", "Details", new { id = item.LOGINPERS }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.LOGINPERS })
        </td>
    </tr>
}

</table>
